package com.qiwx.pigeon.adapter.stock;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.qiwx.pigeon.R;
import com.qiwx.pigeon.data.vo.stock.CustomerBean;
import com.qiwx.pigeon.data.vo.stock.SupplierBean;

import java.util.List;

/**
 * @description
 * @Author qiwx
 * @Date 2020/9/2 6:27 PM
 **/
public class CustomerAdapter extends BaseQuickAdapter<CustomerBean, BaseViewHolder> {


    public CustomerAdapter(int layoutResId) {
        super(layoutResId);
    }

    public CustomerAdapter(int layoutResId, List<CustomerBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, CustomerBean bean) {
        holder.setText(R.id.txt_name, bean.getName());
        holder.setText(R.id.txt_adress, bean.getAdress());
        holder.setText(R.id.txt_phone, bean.getTelephone());

    }
}

